<h1>Editing rest_model</h1>

<%= error_messages_for :rest_model %>

<% form_for(:rest_model, :url => rest_model_path(@rest_model), :html => { :method => :put }) do |f| %>
  <p>
    <b>Field a</b><br />
    <%= f.text_field :field_a %>
  </p>

  <p>
    <b>Field b</b><br />
    <%= f.text_area :field_b %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', rest_model_path(@rest_model) %> |
<%= link_to 'Back', rest_models_path %>